SortRange(Int32,Int32,Int32,Int32,Boolean,SortInfo[]) Method
In This Topic
Sorts a range of cells on this sheet in the data model.
Syntax
'Declaration
Public Function SortRange( _
ByVal As Integer, _
ByVal column As Integer, _
ByVal As Integer, _
ByVal columnCount As Integer, _
ByVal As Boolean, _
ByVal () As SortInfo _
) As Boolean
'Usage
Dim instance As SheetView
Dim row As Integer
Dim column As Integer
Dim rowCount As Integer
Dim columnCount As Integer
Dim byRows As Boolean
Dim sortInfo() As SortInfo
Dim value As Boolean
value = instance.SortRange(row, column, rowCount, columnCount, byRows, sortInfo)
Parameters
- row
- Index of the starting row of the block of cells to sort
- column
- Index of the starting column of the block of cells to sort
- rowCount
- Number of rows in the block of cells
- columnCount
- Number of columns in the block of cells
- byRows
- Whether to sort by rows (or by columns)
- sortInfo
- SortInfo object with sort criteria and how to perform sort
See Also